export function getGeoJSON(name: string) {
  let json = null;
  switch (name) {
    case "上海市":
      json = require("china-map-json-h/mapjson/shanghai.json");
      break;
    case "河北省":
      json = require("china-map-json-h/mapjson/hebei.json");
      break;
    case "山西省":
      json = require("china-map-json-h/mapjson/shanxi.json");
      break;
    case "内蒙古自治区":
      json = require("china-map-json-h/mapjson/neimeng.json");
      break;
    case "辽宁省":
      json = require("china-map-json-h/mapjson/liaoning.json");
      break;
    case "吉林省":
      json = require("china-map-json-h/mapjson/jilin.json");
      break;
    case "黑龙江省":
      json = require("china-map-json-h/mapjson/heilongjiang.json");
      break;
    case "江苏省":
      json = require("china-map-json-h/mapjson/jiangsu.json");
      break;
    case "浙江省":
      json = require("china-map-json-h/mapjson/zhejiang.json");
      break;
    case "安徽省":
      json = require("china-map-json-h/mapjson/anhui.json");
      break;
    case "福建省":
      json = require("china-map-json-h/mapjson/fujian.json");
      break;
    case "江西省":
      json = require("china-map-json-h/mapjson/jiangxi.json");
      break;
    case "山东省":
      json = require("china-map-json-h/mapjson/shandong.json");
      break;
    case "河南省":
      json = require("china-map-json-h/mapjson/henan.json");
      break;
    case "湖北省":
      json = require("china-map-json-h/mapjson/hubei.json");
      break;
    case "湖南省":
      json = require("china-map-json-h/mapjson/hunan.json");
      break;
    case "广东省":
      json = require("china-map-json-h/mapjson/guangdong.json");
      break;
    case "广西壮族自治区":
      json = require("china-map-json-h/mapjson/guangxi.json");
      break;
    case "海南省":
      json = require("china-map-json-h/mapjson/hainan.json");
      break;
    case "四川省":
      json = require("china-map-json-h/mapjson/sichuan.json");
      break;
    case "贵州省":
      json = require("china-map-json-h/mapjson/guizhou.json");
      break;
    case "云南省":
      json = require("china-map-json-h/mapjson/yunnan.json");
      break;
    case "西藏自治区":
      json = require("china-map-json-h/mapjson/xizang.json");
      break;
    case "陕西省":
      json = require("china-map-json-h/mapjson/shan3xi.json");
      break;
    case "甘肃省":
      json = require("china-map-json-h/mapjson/gansu.json");
      break;
    case "青海省":
      json = require("china-map-json-h/mapjson/qinghai.json");
      break;
    case "宁夏回族自治区":
      json = require("china-map-json-h/mapjson/ningxia.json");
      break;
    case "新疆维吾尔自治区":
      json = require("china-map-json-h/mapjson/xinjiang.json");
      break;
    case "北京市":
      json = require("china-map-json-h/mapjson/beijing.json");
      break;
    case "天津市":
      json = require("china-map-json-h/mapjson/tianjin.json");
      break;
    case "重庆市":
      json = require("china-map-json-h/mapjson/chongqing.json");
      break;
    case "香港特别行政区":
      json = require("china-map-json-h/mapjson/xianggang.json");
      break;
    case "澳门特别行政区":
      json = require("china-map-json-h/mapjson/aomen.json");
      break;
    case "台湾省":
      json = require("china-map-json-h/mapjson/taiwan.json");
      break;
  }
  return json;
}
